<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SK43 TokTok Project</title>
<script language="javascript" type="text/javascript">

function sub1() {
	document.OfficialOrderForm.submit();
}
</script>
</head>
 
<body>
<table  width="1024" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td style="height:80px">
			<!-- 상단 메뉴 페이지 포함 -->
			<jsp:include page="../include/top.jsp"></jsp:include>
		</td>
	</tr>
	<tr>
		<td style="height:600px" valign="top">
			<!-- 본페이지 시작 -->
			<form name="OfficialOrderForm" action="./AddOfficialOrder" method="post">
			<table border="1">
				<tr>
						<td>
						<select name="department_id" onchange="test()")>
							<option value="">발령할 부서를 선택하세요</option>
							<c:forEach var="dept_view" items="${dept_view}">
								<option value="${dept_view.department_id}">${dept_view.department_id} - ${dept_view.department_name}</option>
							</c:forEach>
						</select>
						<input type="text" name="employee_id"  value="변경할  사원번호입력" onfocus="this.value=''"/>
						<input type="text" name="start_date"  value="2010-08-09" onfocus="this.value=''"/>
						<input type="hidden" name="statement"  value="0"/>
						<input type="button" value="발령" onclick= "sub1()"/>
					</td>
				</tr>
			</table>
			</form>
			
			<table border="1" width="550">
			<tr>
			<td>Index</td>
			<td>사원번호</td>
			<td>부서번호</td>
			<td>발령날짜</td>
			<td>발령상태</td>
			</tr>
			<c:forEach var="officialOrder_view" items="${officialOrder_view}">
			<tr>
			<td>${officialOrder_view.official_order_id}</td>
			<td>${officialOrder_view.employee_id}</td>
			<td>${officialOrder_view.department_id}</td>
			<td>${officialOrder_view.start_date}</td>
			<td>${officialOrder_view.statement}</td>
			</tr>
			</c:forEach>
			</table>
		</td>
	</tr>
	<!-- 본페이지 끝-->
	<!-- 하단 페이지 시작-->
	<tr>
		<td style="height:40px">
			<!-- 상단 메뉴 페이지 포함 -->
			<jsp:include page="../include/bottom.jsp"></jsp:include>
		</td>
	</tr>
	
</table>

</body>
</html>



